﻿using FluentNHibernate.Mapping;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WebSite.Model;

namespace WebSite.Data.NH.Repositories.Mappings
{
    public class PersonMap : ClassMap<PersonInfo>
    {
        public PersonMap()
        {
            Table("Person");
            Id(x => x.Id).Column("PersonId").GeneratedBy.Native();
            Map(x => x.Name);
            Map(x => x.BirthDay);
            Map(x => x.Notes); 
        }
    }
}
